package com.example.e_comm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Vehicle;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

public interface VehicleService extends IService<Vehicle> {
    // 获取所有在线车辆信息
    List<Vehicle> getOnlineVehicles();
    // 分页查询车辆列表
    IPage<Vehicle> getVehiclePage(IPage<Vehicle> page);
    // 根据VIN查询车辆详情
    Vehicle getVehicleByVin(String vin);
    // 接收车辆上报状态数据
    boolean reportVehicleStatus(Vehicle vehicle);
}
